<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: Mr.Xhai
  Date: 2018/11/15
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="width: 600px;border: 1px solid red;">
    <s:if test="entrys ==null">
        <form action="addEbookStatk.action" method="post">
    </s:if>
    <s:else>
        <form action="udpEbookStatk.action" method="post">
    </s:else>

        <table border="" style="width: 100%;">
            <input type="hidden" name="ebookEntry.id" value="<s:property value="entrys.id"/> "/>
            <tr>
                <th style="width: 30%;height: 33px;">图书名称(*)</th>
                <td style="width: 70%;height: 33px;">
                    <input type="text" name="ebookEntry.title" value="<s:property value="entrys.title"/>" />
                </td>
            </tr>
            <tr>
                <th style="width: 30%;height: 33px;">图书摘要</th>
                <td style="width: 70%;height: 33px;">
                    <textarea name="ebookEntry.summary" rows="4" cols="40"><s:property value="entrys.summary"/></textarea>
                </td>
            </tr>
            <tr>
                <th style="width: 30%;height: 33px;">上传人</th>
                <td style="width: 70%;height: 33px;">
                    <input type="text" name="ebookEntry.uploaduser"  value="<s:property value="entrys.uploaduser"/>" />
                </td>
            </tr>
            <tr>
                <th style="width: 30%;height: 33px;">上传时间(*)</th>
                <td style="width: 70%;height: 33px;">
                    <input type="text" name="ebookEntry.createdate" id="" value="<s:property value="entrys.createdate"/>" />
                    (yyyy-MM-dd)
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 33px;text-align: center;">
                    <input type="submit"value="提交" />
                    <input type="button" value="返回" />
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
